package com.usermanagement.dto;

import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import lombok.Data;

@Data
public class AssignPermissionDTO {

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    /**
     * 角色ID
     */
    @NotNull(message = "角色ID不能为空")
    @ApiModelProperty(value = "角色ID")
    private Integer roleId;

    /**
     * 身份ID
     */
    @NotNull(message = "身份ID不能为空")
    @ApiModelProperty(value = "身份ID")
    private Integer identityId;
}